/*
 * @Author: ljkt
 * @Version: 2.0
 * @Date: 2022-05-16 11:06:33
 * @LastEditors: ljkt
 * @LastEditTime: 2025-01-28 12:58:07
 * @Description:
 */
#include "./Hal/mcu_example/Hal_Common_Func.h"
#define EN_PWM1
#if defined(EN_PWM0) || defined(EN_PWM1) || defined(EN_PWM2)
void Hal_Pwmx_Duty(s_pwmx_config_t *config, unsigned short f, unsigned char duty)
{
	switch (config->chx)
	{
#ifdef EN_PWM0
	case e_HAL_PWM0:
		break;
#endif
#ifdef EN_PWM1
	case e_HAL_PWM1:
		break;
#endif
#ifdef EN_PWM2
	case e_HAL_PWM2:
		break;
#endif
	default:
		break;
	}
}

void Hal_Pwmx_Init(s_pwmx_config_t *config)
{
	Hal_Gpio_Out(&config->gpio, config->level);
	Hal_Pwmx_Duty(config, config->F, 0);
	switch (config->chx)
	{
#ifdef EN_PWM0
	case e_HAL_PWM0:
		break;
#endif
#ifdef EN_PWM1
	case e_HAL_PWM1:
		break;
#endif
#ifdef EN_PWM2
	case e_HAL_PWM2:
		break;
#endif
	default:
		break;
	}
}
void Hal_Pwmx_IF_Clr(s_pwmx_config_t *config)
{
	switch (config->chx)
	{
#ifdef EN_PWM0
	case e_HAL_PWM0:
		break;
#endif
#ifdef EN_PWM1
	case e_HAL_PWM1:
		break;
#endif
#ifdef EN_PWM2
	case e_HAL_PWM2:
		break;
#endif
	default:
		break;
	}
}
#endif